<% content_for :page_title do %>
  <%= Spree.t(:options) %>
<% end %>

<% content_for :page_actions do %>
  <%= render_admin_partials(:option_types_actions_partials) %>
  <%= link_to_with_icon 'plus', Spree.t(:new_option_type), new_object_url, class: 'btn btn-primary' if can?(:create, Spree::OptionType) %>
<% end %>

<%= content_for(:page_alerts) do %>
  <div class="alert alert-info">
    Options are used to group certain attributes. For example, you can create an option named "shirt size" and then
    create an option value named "small" and "medium" for this option.
  </div>
<% end %>

<%= render_admin_partials(:option_types_header_partials) %>

<%= render 'spree/admin/shared/index_table', sortable: true %>

<p class="documentation-link-container">
  <%= external_link_to "Learn more about options", "https://spreecommerce.org/docs/user/manage-products/product-options" %>
</p>
